import request from '@/utils/request'

export function getAllListApi(params) {
  return request({
    url: '/parking/usage',
    method: 'get',
    params
  })
}

// 获取标签列表
export function getAdvListApi(params) {
  return request({
    url: '/ydd_advimg/list',
    method: 'get',
    params
  })
}
// 下拉菜单列表
export function getCateAllApi() {
  return request({
    url: '/community',
    method: 'get'
  })
}

// 增加分类
export function addUserApi(data ) {
  return request({
    url: '/parking/usage',
    method: 'post',
    data
  })
}

// 点击修改回显
export function editUserApi(data) {
  return request({
    url: '/parking/usage/' + data.id,
    method: 'put',
    data
  })
}
// 获取行Id 
export function editUserId(id) {
  return request({
    url: '/parking/usage/' +id,
    method: 'get'
  })
}

// 删除
export function delUsageApi(id) {
  return request({
    url: '/parking/usage/' + id,
    method: 'delete'
  })
}